package android.app.betmein.activity;

import viewmodel.BetManagementJudgmentTabViewModel;
import viewmodel.BetManagementParticipateTabViewModel;
import viewmodel.BetManagementWatchListTabViewModel;
import viewmodel.BetManagmentJoinTabViewModel;
import android.app.betmein.R;
import android.app.betmein.view.BetManagementJudgmentTabView;
import android.app.betmein.view.BetManagementParticipateTabView;
import android.app.betmein.view.BetManagementWatchListTabView;
import android.app.betmein.view.BetManagmentJoinTabView;
import android.os.Bundle;

public class BetManagmentActivity extends MultipleMasterPageActivity {

	@Override
	public void init(Bundle savedInstanceState) {
		
		// Join Bets
		BetManagmentJoinTabViewModel joinVm = new BetManagmentJoinTabViewModel(this);
		BetManagmentJoinTabView joinView = new BetManagmentJoinTabView(joinVm, this, R.layout.simple_list);
		joinVm.setView(joinView);
		addNewView(joinView);
		
		// Participate Bets
		BetManagementParticipateTabViewModel participateVm = new BetManagementParticipateTabViewModel(this);
		BetManagementParticipateTabView participateView = new BetManagementParticipateTabView(participateVm, this, R.layout.simple_list);
		participateVm.setView(participateView);
		addNewView(participateView);
		
		
		// Judgment Bets
		BetManagementJudgmentTabViewModel judgmentVm = new BetManagementJudgmentTabViewModel(this);
		BetManagementJudgmentTabView judgmentView = new BetManagementJudgmentTabView(judgmentVm, this, R.layout.simple_list);
		judgmentVm.setView(judgmentView);
		addNewView(judgmentView);
		
		// WatchList Bets
		BetManagementWatchListTabViewModel watchListVm = new BetManagementWatchListTabViewModel(this);
		BetManagementWatchListTabView watchListView = new BetManagementWatchListTabView(watchListVm, this, R.layout.simple_list);
		watchListVm.setView(watchListView);
		addNewView(watchListView);
	}
	
}
